package com.bestv.search.common.dao;

import com.bestv.search.common.model.ManualBind;

import java.util.List;

public interface ManualBindDao extends GenericDao<ManualBind, Long> {

    ManualBind getManualBindByName(String name);

    int getFailedCount(String siteCode);

    int getManualBindCount();

    List<ManualBind> getManualBindsPaging(final int start, final int limit);

    int updateId(long oldId, long newId);

    List<ManualBind> getOwns(int start, int limit);

    int getOwnsCount();

    List<ManualBind> getFailedList(String siteCode, int start, int limit);
}
